<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>绑卡管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/siteuseraccount/siteUserBankcard/">绑卡管理列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="siteUserBankcard" action="${ctx}/siteuseraccount/siteUserBankcard/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li>
				<label>用户编号：</label>
				<form:input path="userId" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li>
				<label>登录账号：</label>
				<form:input path="cityCode" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li>
				<label>身份证号：</label>
				<form:input path="bankCode" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li>
				<label>用户姓名：</label>
				<form:input path="proviceCode" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>编号</th>
				<th>用户编号</th>
				<th>登录账号</th>
				<th>用户姓名</th>
				<th>身份证号</th>
				<th>银行账号</th>
				<th>开户行</th>
				<th>开户行地址</th>
				<th>预留手机号</th>
				<th>卡类型</th>
				<th>卡类别</th>
				<th>账户类型</th>
				<th>状态</th>
				<th>解绑状态</th>
				<th>创建时间</th>
				<th>更新时间</th>
				<shiro:hasPermission name="siteuseraccount:siteUserBankcard:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="siteUserBankcard" varStatus="s">
			<tr>
				<td>${s.index + 1}</td>
				<td>${siteUserBankcard.userId}</td>
				<td>${siteUserBankcard.cityCode}</td>
				<td>${siteUserBankcard.proviceCode}</td>
				<td>${siteUserBankcard.bankCode}</td>
				<td>${siteUserBankcard.cardNo}</td>
				<td>${siteUserBankcard.bankName}</td>
				<td>${siteUserBankcard.bankAddr}</td>
				<td>${siteUserBankcard.remainPhone}</td>
				<td>${siteUserBankcard.cardType == 3 ? "信用卡" : siteUserBankcard.cardType == 2 ?"储蓄卡":""}</td>
				<td>${siteUserBankcard.type == 1 ? "提现卡" : siteUserBankcard.type == 2 ? "网银充值卡":""}</td>
				<td>${siteUserBankcard.acctType == 0 ? "对私" : "对公"}</td>
				<td>${siteUserBankcard.status == 1 ? "正常" : siteUserBankcard.status == 0 ?"禁用": siteUserBankcard.status == 2 ?"删除":""}</td>
				<td>${siteUserBankcard.unbindStatus == 0 ? "正常" : siteUserBankcard.unbindStatus == 1 ?"已解绑":""}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${siteUserRecharge.createTime}"></fmt:formatDate></td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${siteUserRecharge.updateTime}"></fmt:formatDate></td>
				<shiro:hasPermission name="siteuseraccount:siteUserBankcard:edit"><th>查看详情</th></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>